﻿using System.Collections.Generic;
using ControlLibrary.Impl;

namespace ControlLibrary.Collections
{
    public class DataBindingCollection : List<DataBound>
    {
        public DataBindingCollection() : base()
        {
        }

        public DataBindingCollection(int capacity) : base(capacity)
        {
        }

        public DataBindingCollection(IEnumerable<DataBound> collection)
            : base(collection)
        {
        }

        public void Add(string propertyName, object dataSource, string dataMember)
        {
            this.Add(new DataBound(propertyName, dataSource, dataMember));
        }
    }
}